package cn.sccdlg.lambda.demo04.service;

import cn.sccdlg.lambda.demo04.mapper.DeptMapper;
import cn.sccdlg.lambda.demo04.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author RaoShuang
 * @emil 991207823@qq.com
 * @date 2020/6/7 22:15
 * 部门Service
 */
@Service
public class DeptService {

    @Autowired
    private DeptMapper deptMapper;

    public List<Dept> findAllDept() {
        return deptMapper.findAll();
    }
}
